net: phy: add an option to disable EEE advertisement
authorjbrunet <jbrunet@baylibre.com>
Mon, 28 Nov 2016 09:46:46 +0000 (10:46 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:04:30 +0000 (03:04 +0000)
commite0720065dc9cdfc1f445fefb635208fccf405eee
tree3a8fc168577f64464ce55ee4019e2414317ae59b
parent782c6a54c30b3bcd6688a23468b7d288708e618b
net: phy: add an option to disable EEE advertisement

[ Upstream commit d853d145ea3e63387a2ac759aa41d5e43876e561 ]

This patch adds an option to disable EEE advertisement in the generic PHY
by providing a mask of prohibited modes corresponding to the value found in
the MDIO_AN_EEE_ADV register.

On some platforms, PHY Low power idle seems to be causing issues, even
breaking the link some cases. The patch provides a convenient way for these
platforms to disable EEE advertisement and work around the issue.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
Tested-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/phy.c
drivers/net/phy/phy_device.c
include/linux/phy.h